<?php

namespace App\Console\WxCommands;

use App\Services\WxMassCommentService;
use Illuminate\Console\Command;

/**
 * 微信群发定时发送
 * @package App\Console\WxtjCommands
 */
class MassCommentDownload extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'wx-mass:comment-download';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '微信群发评论数据下载';
    protected $wxMassComment;
    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct(WxMassCommentService $wxMassCommentService)
    {
        parent::__construct();
        $this->wxMassComment = $wxMassCommentService;
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $this->wxMassComment->syncAll();
    }
}
